package com.docking.heylo.dao.mapper;

import com.docking.heylo.dao.entity.UserBlacklist;
import com.docking.heylo.dao.entity.UserBlacklistExample;
import java.util.List;
import java.util.Map;

import com.docking.heylo.enums.EUserBlack;
import org.apache.ibatis.annotations.Param;

public interface UserBlacklistMapper {
    long countByExample(UserBlacklistExample example);

    int deleteByExample(UserBlacklistExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserBlacklist record);

    int insertSelective(UserBlacklist record);

    List<UserBlacklist> selectByExample(UserBlacklistExample example);

    UserBlacklist selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserBlacklist record, @Param("example") UserBlacklistExample example);

    int updateByExample(@Param("record") UserBlacklist record, @Param("example") UserBlacklistExample example);

    int updateByPrimaryKeySelective(UserBlacklist record);

    int updateByPrimaryKey(UserBlacklist record);

    List<UserBlacklist> selectByUserIdAndPostId(@Param("userId") int userId,
                                                @Param("postIds") List<Integer> postIds,
                                                @Param("type") int type);


    List<Map<String, Object>> userBlacks(@Param("userName") String userName, @Param("userId") int userId);
}